<%@ include file="../includes/taglibs.jsp"%>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>

<div class="b-menu-item">

	<c:choose>
		<c:when test="${menuItem.hasImage}">
			<div class="b-menu-item-image-link" style="background: url('${menuItem.image.link}') no-repeat scroll 0 0 transparent">
				<a href="${pageContext.request.contextPath}${menuItem.URL}"></a>
			</div>
		</c:when>
		<c:otherwise>
			<div class="b-menu-item-image-link"></div>
		</c:otherwise>
	</c:choose>

	<c:if test="${menuItem.hasTitle}">
		<a class="b-menu-item-title-link" href="${pageContext.request.contextPath}${menuItem.URL}">
			${menuItem.title}
		</a>
	</c:if>
	
	<c:if test="${menuItem.hasText}">
		<div class="b-menu-item-text">${menuItem.text}</div>
	</c:if>
	
</div>
